package pcjavanet.mobilesell.persistence;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import pcjavanet.mobilesell.model.Goods;
import pcjavanet.mobilesell.model.GoodsExample;
import pcjavanet.mobilesell.model.PageBean;

public interface GoodsMapper {
    int countByExample(GoodsExample example);

    int deleteByExample(GoodsExample example);

    int deleteByPrimaryKey(Integer dbid);

    int insert(Goods record);

    int insertSelective(Goods record);

    List<Goods> selectByExample(GoodsExample example);

    Goods selectByPrimaryKey(Integer dbid);

    int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    List<Goods> getOnePageBeans(@Param("example") GoodsExample example, @Param("pageBean") PageBean pageBean);

    int getTotalRecords(@Param("example") GoodsExample example, @Param("pageBean") PageBean pageBean);

    List<Goods> selectByExamplePage(@Param("example") GoodsExample example, @Param("pageBean") PageBean pageBean);
}